package top.vains.config.shiro;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * shiro中负责把userName,password用于生成验证token的封装类
 * 需自定义一个对象来包装token
 * @author vains
 * @version 1.0
 * @since 2020/2/18 15:44
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class JwtToken implements AuthenticationToken {

    /**
     * 需要校验的token字符串
     */
    private String token;

    @Override
    public Object getPrincipal() {
        return null;
    }

    @Override
    public Object getCredentials() {
        return null;
    }
}
